package nsoft.swing.demo;

import nsoft.swing.annotation.AButton;
import nsoft.swing.annotation.AComponent;
import nsoft.swing.annotation.Type;
import nsoft.swing.annotation.APanel;

@APanel(name = "Test", layout = "FlowLayout(0)",layoutProperties = {"gridx:0","gridy:5"}/*"West"*/,fileds={"east","west","north","south","center"},
buttons = @AButton(label = "Test", controller = "DemoPanelFlow", action = "buttonAction", layout = "Center", properties = "Foreground:#B22737"))
public class DemoPanelFlow {
	@AComponent(type = Type.LABEL, name = "Test", property = "east",properties = "Foreground:#CFBAFF")
	private String east="east";
	@AComponent(type = Type.LABEL, name = "Test",label="test 123", property = "west", properties = "Background:#B52737")
	private String west="west";
	@AComponent(type = Type.LABEL, name = "Test", property = "north")
	private String north="north";
	@AComponent(type = Type.LABEL, name = "Test", property = "south")
	private String south="south";
	@AComponent(type = Type.LABEL, name = "Test", property = "center")
	private String center="center";

	public String getEast() {
		return east;
	}

	public void setEast(String east) {
		this.east = east;
	}

	public String getWest() {
		return west;
	}

	public void setWest(String west) {
		this.west = west;
	}

	public String getNorth() {
		return north;
	}

	public void setNorth(String north) {
		this.north = north;
	}

	public String getSouth() {
		return south;
	}

	public void setSouth(String south) {
		this.south = south;
	}

	public String getCenter() {
		return center;
	}

	public void setCenter(String center) {
		this.center = center;
	}

	public void buttonAction() {
		System.out.println("DemoPanelFlow test");
	}
}
